package com.example.demo.msg.aio.server;

public class AioServer {

    public static AioServerHandle serverHandle;

    public static int port = 8888;

    public volatile static long clientCount = 0;

    public static void start(){
        start(port);

    }

    public static  void start(int port){
        if(serverHandle!=null)
           return;
        serverHandle = new AioServerHandle(port);
        new Thread(serverHandle,"server").start();
    }

    public static void main(String[] args) {
        AioServer.start();
    }
}